package com.czwj.dao;

import java.util.List;
import java.util.Map;

import com.czwj.entities.PlanDaily;

public interface PlanDailyMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PlanDaily record);

    int insertSelective(PlanDaily record);

    PlanDaily selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PlanDaily record);

    int updateByPrimaryKey(PlanDaily record);

	List<PlanDaily> search(Map<String, Object> map);

	int count(Map<String, Object> map);

	int updateStatus(int id);

	PlanDaily findbydateandmain(Map<String, Object> map);

	String remainpercent(Map<String, Object> map);

	List<PlanDaily> searchbylevel2(Map<String, Object> map);

	int countbylevel2(Map<String, Object> map);

	List<PlanDaily> searchReviewedLevel2(Map<String, Object> map);

	int countReviewedLevel2(Map<String, Object> map);
	
	List<PlanDaily> findoneday(Map<String, Object> map);

	List<String> existplandate(Map<String, Object> map);

	List<PlanDaily> findbymain(Integer mainid);
}